package com.fovipol.saf.infrastructure.aop;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;


@Aspect
public class SessionAop {
	
	public final Log logger = LogFactory.getLog(this.getClass());
	SessionAop(){}
	
	@Pointcut("execution(* *.registrarUsuario(..))")
	public void validar() {
		logger.debug("[MSG] en validar");
	}
	
	@Before("validar()")
	public void antesValidar() {
		logger.debug("[MSG] antes validar");
	}
	
	@After("validar()")
	public void despuesValidar() {
		logger.debug("[MSG] despues validar");
	}
}
